var searchApp = angular.module('searchApp',[]);


searchApp.controller('searchCon',function($scope,$http){
  $scope.query = '';
  $scope.search = function(query){
    $http({
      url:'/search',
      method:'post',
      data:{query:query}
    }).success(function(data){
      if(data[success === true]){

      }
    }).error(function(data){

    });
  };
});
